package test;

import diamondRingEntity.Address;
import diamondRingEntity.Order;
import diamondRingEntity.OrderGoods;
import diamondRingEntity.Shooping;
import diamondRingService.impl.AddressServiceImpl;
import diamondRingService.impl.DiamondRingServiceImpl;
import diamondRingService.impl.OrderServiceImpl;

import java.util.List;

public class test2 {
    public static void main(String[] args) {
        AddressServiceImpl aa=new AddressServiceImpl();
        List<Address> ss=aa.addFind(13);
        for (Address aaa:
            ss ) {
            System.out.println(aaa.getDiamondProvince());
        }

OrderServiceImpl orderService=new OrderServiceImpl();
        List<Order> orders=orderService.orderFind(13);
        for (Order dd:
             orders) {
            System.out.println(dd.getOrderGoods().getId()+""+dd.getDiamondRingEntity().getGoodsPath());
        }

    }
}
